package com.ambulance.project.manager.service.impl;

import com.ambulance.project.manager.domain.BizReport;
import com.ambulance.project.manager.mapper.BizReportMapper;
import com.ambulance.project.manager.service.IBizReportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 报告单Service业务层处理
 *
 * @author rxl
 * @date 2020-07-04
 */
@Service
public class BizReportServiceImpl implements IBizReportService
{
    @Autowired
    private BizReportMapper bizReportMapper;

    /**
     * 查询报告单
     *
     * @param id 报告单ID
     * @return 报告单
     */
    @Override
    public BizReport selectBizReportById(Long id)
    {
        return bizReportMapper.selectBizReportById(id);
    }

    /**
     * 查询报告单列表
     *
     * @param bizReport 报告单
     * @return 报告单
     */
    @Override
    public List<BizReport> selectBizReportList(BizReport bizReport)
    {
        return bizReportMapper.selectBizReportList(bizReport);
    }

    /**
     * 新增报告单
     *
     * @param bizReport 报告单
     * @return 结果
     */
    @Override
    public int insertBizReport(BizReport bizReport)
    {
        return bizReportMapper.insertBizReport(bizReport);
    }

    /**
     * 修改报告单
     *
     * @param bizReport 报告单
     * @return 结果
     */
    @Override
    public int updateBizReport(BizReport bizReport)
    {
        return bizReportMapper.updateBizReport(bizReport);
    }

    /**
     * 批量删除报告单
     *
     * @param ids 需要删除的报告单ID
     * @return 结果
     */
    @Override
    public int deleteBizReportByIds(Long[] ids)
    {
        return bizReportMapper.deleteBizReportByIds(ids);
    }

    /**
     * 删除报告单信息
     *
     * @param id 报告单ID
     * @return 结果
     */
    @Override
    public int deleteBizReportById(Long id)
    {
        return bizReportMapper.deleteBizReportById(id);
    }
}
